package com.cgwx.testservice.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cgwx.commonutils.result.SysResult;
import com.cgwx.springsecurity.entity.SysOperLog;
import com.cgwx.springsecurity.entity.SysOperLogQueryVo;
import com.cgwx.springsecurity.service.SysOperLogService;
import com.cgwx.testservice.client.SystemClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author GaoWei
 * @Date 2023/10/28 - 11:25
 */
@Service
public class TestSysOperLogServiceImpl implements SysOperLogService {

    @Autowired
    private SystemClient systemClient;

    @Override
    public void saveSysLog(SysOperLog operLog) {
        SysResult sysResult = systemClient.saveSysLog(operLog);
    }

    @Override
    public IPage<SysOperLog> selectPage(Page<SysOperLog> pageParam, SysOperLogQueryVo sysOperLogQueryVo) {
        return systemClient.selectOperPage(pageParam.getPages(), pageParam.getMaxLimit(), sysOperLogQueryVo);
    }
}
